package packet

func NewAdapter(name string) Adapter {
	switch name {
	case VariableLengthAdapterName:
		return NewVarPack()
	case Fixed2LengthAdapterName:
		return NewFix2Pack()
	case Fixed4LengthAdapterName:
		return NewFix4Pack()
	}
	return nil
}
